import http from '../request/index'

interface ruleForm {
    username: string;
    password: string;
}

export function login(data: ruleForm) {
    return http({
        url: '/login',
        method: 'post',
        data
    })
}